package com.jurenzhao.partssystem.information.basic_model.dao;

import com.jurenzhao.partssystem.information.basic_model.entity.BasicModel;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@MapperScan
public interface BasicModelMapper {
    int deleteByPrimaryKey(Integer modelNo);

    int insert(BasicModel record);

    int insertSelective(BasicModel record);

    BasicModel selectByPrimaryKey(Integer modelNo);

    int updateByPrimaryKeySelective(BasicModel record);

    int updateByPrimaryKey(BasicModel record);
    //通过车系id 查询车型信息
    List<BasicModel> findModelBySeriesId(int id);

    List<BasicModel> findAll();
}